package main

import "fmt"

type IntVector []int

func (r IntVector) Sum() (s int) {
	for _, x := range r {
		s += x
	}
	return
}

func main() {
	vector := IntVector{1, 2, 3, 4, 5, 6, 7, 8, 9}
	fmt.Println("IntVector: ", vector.Sum())

}
